<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/jsp/common.jsp"%>
<!DOCTYPE html>
<html>
<head>
	<base href="<%=basePath%>">
	<meta http-equiv="X-UA-Compatible" content="IE=Edge" />
	<meta content="width=device-width,user-scalable=Yes,initial-scale=1.0" name="viewport" />
	<title>重置密码确认页</title>
	
	<link href="bootstrap/3.2.0/css/bootstrap.min.css" rel="stylesheet">
	<link href="css/base.css" rel="stylesheet">
	
	<script src="jquery/2.1.1/jquery.min.js"></script>
	<script src="bootstrap/3.2.0/js/bootstrap.min.js"></script>
	<script src="layer/layer.js"></script>
	
	<style type="text/css">
	</style>

</head>
<body>
	<div class="container">
		<div class="lg-form yahei">
			<div class="lg-title ">重置密码</div>
			<div class="lg-body bgf">
				<form class="login-form" action="resetPassword/stepTwo" method="post">
					<div class="form-group">
						<input type="text" name="userName" value="${userName}" class="form-control" placeholder="请输入邮箱" readonly />
					</div>
					<div class="form-group">
                    	<input type="password" name="password" class="form-control" placeholder="请输入新密码, 6~18位之间" required />
                	</div>
                	<div class="form-group">
	                    <input type="password" name="confirmPassword" class="form-control" placeholder="请再输入一次密码！" required />
	                </div>
					<button class="btn btn-lg btn-primary btn-block" type="submit">提交</button>
					<div class="otherbox">
						<a href="login/toLogin" class="btn btn-lg btn-default btn-bor">去登录</a>
					</div>
				</form>
			</div>
		</div>
	</div>
</body>
<script type="text/javascript">
	$(function() {
		var userName = '${userName}';
		$("input[name='nickName']").val(userName.substring(0,userName.indexOf("@")));
	});
</script>
</html>
